//分类数据ts类型
export interface ResponseData {
  code: number
  message: string
  ok: boolean
}
export interface CategoryResponseData extends ResponseData {
  data: CategoryObj[]
}
export interface CategoryObj {
  id: number | string
  name: string
  category1Id?: number | string
  category2Id?: number | string
}
//属性与属性值ts类型
export interface AttrResponseData extends ResponseData {
  data: AttrList
}
//属性类型
export interface AttrObj {
  id?: number | string
  attrName: string
  categoryId: number | string
  categoryLevel: number
  attrValueList: AttrValueList
}
export type AttrList = AttrObj[]
//属性值类型
export interface AttrValueObj {
  id?: number | string
  attrId?: number | string
  valueName: string
  isEdit?: boolean
}
export type AttrValueList = AttrValueObj[]
